package view;

import java.awt.Menu;
import java.awt.MenuBar;
import java.awt.MenuItem;

public class MenuTray extends MenuBar{
	private static final long serialVersionUID = 1L;

	public MenuTray(){
		
//		 --------------file menu----------------------------------------
		Menu menu_file = new Menu("Tệp tin");
			MenuItem item_exit = new MenuItem("Thoát khỏi");
				menu_file.add(item_exit);
			
//		--------------view menu----------------------------------------
		Menu menu_view = new Menu("Hiển thị");
		
//		--------------tasl menu----------------------------------------
		Menu menu_task = new Menu("Tác vụ");
		
//		--------------help menu----------------------------------------
		Menu menu_help = new Menu("Trợ giúp");
			MenuItem item_help    = new MenuItem("Hướng dẫn");
			MenuItem item_website = new MenuItem("Website");
			MenuItem item_info    = new MenuItem("Giới thiệu");
				menu_help.add(item_help);
				menu_help.add(item_website);
				menu_help.addSeparator();
				menu_help.add(item_info);
				
//		--------------add menu to menubar-------------------------------
		add(menu_file);
		add(menu_view);
		add(menu_task);
		add(menu_help);
	}
}
